﻿using System;
using SqlSugar;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Manufacture
{
    /// <summary>
    /// 工作中心
    /// </summary>
    [SugarTable("WorkCenters")]
    public class WorkCenters:BaseEntity
    {
        /// <summary>
        /// 工作中心id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int WorkCenterId { get; set; }
        /// <summary>
        /// 工作编码 (雪花id)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string WorkCenterCode { get; set; }
        /// <summary>
        /// 工作中心名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string WorkCenterName { get; set; }
        /// <summary>
        /// 工作中心类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string WorkCenterType { get; set; }
        /// <summary>
        /// 班次
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string Classes { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int WorkCenterState { get; set; }
        /// <summary>
        /// 审批状态 1-未提交；2-已提交；3-已审批
        /// </summary>
        public int ApproveState { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-已删除
        /// </summary>
        public int IsWorkCenter { get; set; }
    }
}
